﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using Abp.AutoMapper;
using FwProject.ShoppingMall.EventAdvertising;

namespace FwProject.EventAdvertising.Dto
{
    /// <summary>
    /// 用户在商城中的优惠券
    /// </summary>
    [AutoMap(typeof(ShopUserCoupon))]
    public class ShopUserCouponInput
    {
        /// <summary>
        /// 用户Id
        /// </summary>
        [Display(Name ="用户编号")]
        public long UserId { get; set; }

        /// <summary>
        /// 商城优惠券编号
        /// </summary>
        [Display(Name ="商城优惠券编号")]
        public Guid ShopCouponId { get; set; }

        /// <summary>
        /// 默认0未使用1已使用， 优惠券使用状态
        /// </summary>
        [Display(Name = "优惠券使用状态")]
        public UseStatus UseStatus { get; set; } = UseStatus.Unused;

        /// <summary>
        /// 优惠券使用后对应的订单编号
        /// </summary>
        [Display(Name = "优惠券使用后对应的订单状态")]
        public string OrderNumber { get; set; }
    }
}
